const { defineConfig } = require("@vue/cli-service");
const webpackConfig = require("./webpack.config");
let pathStr = process.env.VUE_APP_PUBLIC_PATH;
module.exports = defineConfig({
  publicPath: pathStr,
  transpileDependencies: true,
  configureWebpack: webpackConfig,
  devServer: {
    headers: {
      "Access-Control-Allow-Origin": "*",
    },
    client: {
      overlay: false,
    },
    compress: true,
    historyApiFallback: true,
    static: {
      directory: "./",
    },
    port: 3000,
    proxy: {},
  },
});
